import axios from 'axios'
export const ApiTags = (data) => {
  return httpRequest.get('/api/tags');
};
// 语音转文字
export const whisperAsr = (data) => {
  return new Promise((resove, reject) => {
    axios.request({
      url: '/whisper/asr?encode=true&task=transcribe&output=txt',
      method: 'post', //
      headers: { 'Accept': 'application/json', 'Content-Type': 'multipart/form-data' },
      data
    }).then((response) => {
      resove(response)
      // fileState.loading = false
      // fileState.videoTex = response.data
    }).catch(() => {
      reject()
    })
  })

};
 

